<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">


    <ui:composition template="/resources/templates/template_site.xhtml">
        
        <ui:define name="content">
             
                <p:panel header="#{bundle.EditCommandeclientTitle}">
                    <h:panelGroup id="messagePanel" layout="block">
                        <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
                    </h:panelGroup>

                    <h:panelGrid columns="2">
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_idcommande}" for="idcommande" />
                        <p:inputText id="idcommande" value="#{commandeclientController.selected.idcommande}" title="#{bundle.EditCommandeclientTitle_idcommande}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_idcommande}"/>
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_quantite}" for="quantite" />
                        <p:inputText id="quantite" value="#{commandeclientController.selected.quantite}" title="#{bundle.EditCommandeclientTitle_quantite}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_quantite}"/>
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_dateReser}" for="dateReser" />
                        <p:inputText id="dateReser" value="#{commandeclientController.selected.dateReser}" title="#{bundle.EditCommandeclientTitle_dateReser}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_dateReser}">
                            <f:convertDateTime pattern="MM/dd/yyyy" />
                        </p:inputText>
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_statutreser}" for="statutreser" />
                        <p:inputText id="statutreser" value="#{commandeclientController.selected.statutreser}" title="#{bundle.EditCommandeclientTitle_statutreser}" />
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_etatcomm}" for="etatcomm" />
                        <p:inputText id="etatcomm" value="#{commandeclientController.selected.etatcomm}" title="#{bundle.EditCommandeclientTitle_etatcomm}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_etatcomm}"/>
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_idutil}" for="idutil" />
                        <p:selectOneMenu id="idutil" value="#{commandeclientController.selected.idutil}" title="#{bundle.EditCommandeclientTitle_idutil}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_idutil}">
                            <f:selectItems value="#{utilisateurController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                        <h:outputLabel value="#{bundle.EditCommandeclientLabel_iditem}" for="iditem" />
                        <p:selectOneMenu id="iditem" value="#{commandeclientController.selected.iditem}" title="#{bundle.EditCommandeclientTitle_iditem}" required="true" requiredMessage="#{bundle.EditCommandeclientRequiredMessage_iditem}">
                            <f:selectItems value="#{itemController.itemsAvailableSelectOne}"/>
                        </p:selectOneMenu>
                    </h:panelGrid>
                    <h:commandLink action="#{commandeclientController.update}" value="#{bundle.EditCommandeclientSaveLink}"/>
                    <br />
                    <br />
                    <h:commandLink action="View" value="#{bundle.EditCommandeclientViewLink}" immediate="true"/>
                    <br />
                    <h:commandLink action="#{commandeclientController.prepareList}" value="#{bundle.EditCommandeclientShowAllLink}" immediate="true"/>
                    <br />
                    <br />
                    <h:commandLink value="#{bundle.EditCommandeclientIndexLink}" action="/pages/index" immediate="true" />
                </p:panel>
             
        </ui:define>
    </ui:composition>

</html>
